//
//  OKButton.m
//  fast
//
//  Created by answer on 16/5/21.
//  Copyright © 2016年 answer. All rights reserved.
//

#import "OKButton.h"

@implementation OKButton

+ (instancetype)buttonWithTitle:(NSString *)title {
    OKButton *button = [[OKButton alloc] init];
    button.layer.cornerRadius = 5;
    button.backgroundColor = [UIColor whiteColor];
    [button setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:14];
    //    self.titleLabel.textAlignment = NSTextAlignmentLeft;
    button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
    button.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
    [button setTitle:title forState:UIControlStateNormal];
    
    return button;
}

@end
